#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <iostream>
#include <cmath>
using namespace std;
int hfy(int n)
{
	if (n < 10)
	{
		return 1;
	}
	else
		return 1 + hfy(n / 10);
}
void yzc(int n)
{
	static int x = n;
	if (n == 0)
		return;
	if(x!=n)
	cout << ' ';
	switch (n % 10)
	{
	case 0:cout << "ling"; break;
	case 1:cout << "yi"; break;
	case 2:cout << "er"; break;
	case 3:cout << "san"; break;
	case 4:cout << "si"; break;
	case 5:cout << "wu"; break;
	case 6:cout << "liu"; break;
	case 7:cout << "qi"; break;
	case 8:cout << "ba"; break;
	case 9:cout << "jiu"; break;
	}
	return yzc(n / 10);
}
int main()
{
	int n;
	scanf("%d", &n);
	if (n == 0)
		cout << "ling";
	if (n < 0)
	{
		printf("fu ");
		n = -n;
	}
	int t = 0;
	int q = hfy(n);
	for (int i = 0; i < q; i++)
	{
		t = t * 10 + n % 10;
		n /= 10;
	}
	int w = hfy(t);
	yzc(t);
	while (q > w++)
	{
		cout << " ling";
	}
	cout << endl;
	return 0;
}